package Chapter07.Homework.H20212025.Work04;

public class Car {
    private String color;
    private String card;
    private String name;
    public void show(){
        System.out.println("车名"+name+",颜色"+color+",车牌"+card);
    }
    public void start(){
        System.out.println("启动");
    }
    public void jiasu(){
        System.out.println("加速");
    }
    public void stop(){
        System.out.println("刹车");
    }
    public Car() {
    }

    public Car(String color, String card,String name) {
        this.color = color;
        this.card = card;
        this.name=name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
